<%@ page pageEncoding="utf-8"%>
<%request.setCharacterEncoding("utf-8");%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ include file="/include/filepath.jsp"%>
<%@ include file="/include/pageexpires.jsp" %>
<%@include file="/include/currentuserinfo.jsp"%>
<%@ include file="/javascript/Calendar.jsp" %>
<html>
  <head>
    <title>信息列表</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="<%=ctxpath%>/themes/newstyle/styles/mac/macmenu.css" id="menuStyleSheet">
  </head>
  <script language="javascript">
//window.opener.document.location.reload();

function changeType()
{
 special.style.display="none";
 special2.style.display="none";
 if(form1.bigtype.value=='1'){
  special.style.display="";
   special2.style.display="none";
 }else if (form1.bigtype.value=='2'){
  special.style.display="none";
  special2.style.display="";
  }
}
function selectmutiuser(id,name) {
    var src = "<%=ctxpath%>/orgmodel/selectoneuser.jsp?idname=" + id + "&disname=" + name;
    window.open(src, "_blank", "height=500, width=300, top=0, left=100, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
}
function submitsea(){
       form1.action="<%=ctxpath%>/chat/message.do";
      form1.submit();
      return true;
}
  </script>
  
  <body scroll="no" id="body">
    <TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
      <tr>
        <td valign="top" ><div id="Layer1" style="width:100%; height:100%; z-index:50; overflow: auto;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
              <tr>
                <td valign="top" align="center"><br>
                  <table class="location">
                    <tr>
                      <td class="location_td"><li>当前位置： 聊天系统 &gt;&gt; 聊天记录 &gt;&gt; 
                      历史信息查询&nbsp;&nbsp;&nbsp; </td>
                    </tr>
                  </table>
                  <br>
                  <table  cellpadding="0" cellspacing="0"  class="labeltable_top">
                    <tr>
                      <td class="labeltable_top_left" nowrap>&nbsp;</td>
                      <td class="labeltable_top_middle" nowrap>&nbsp;</td>
                      <td class="labeltable_top_right" nowrap>&nbsp;</td>
                    </tr>
                  </table>
                  <table  cellspacing="0" cellpadding="0"  class="labeltable_middle">
                    <form  name="form1" action="/chat/message.do" method="post" >
                      <tr>
                        <td class="labeltd_middle"><br>
                          <table width="96%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="80" valign="middle" align="center"><img src="<%=ctxpath%>/images/xjrw.gif" width="32" height="31"></td>
                              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><b>提示：</b>输入的信息越多，查询越是精确。</td>
                                  </tr>
                              </table></td>
                            </tr>
                          </table>
                          <br>
                          
                          <input type="hidden" name="method" value="search"/>
                          <input type="hidden" name="senduserid" value=""/>
                          <table class="labeltable_middle_table">
                            <tr>
                              <td colspan="4" align="center" class="labeltable_middle_td_01">消息历史记录查询</td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">发送开始时间:</td>
                              <td width="70%">
                                <input type="text" name="sendbegintime" size="40" readonly>
                                  <button id="sendbegintimebt" type="button" class="button"> ...</button>
                                <script type="text/javascript">
                //时间控件
                    Calendar.setup({
                        inputField     :    "sendbegintime",      // 字段名称 创建时间的结束时间
                        ifFormat       :    "%Y-%m-%d %H:%M:%S",       // format of the input field；不显示时间注释掉2007-05-01 13:45:50 用格式 %Y-%m-%d %H:%M:%S 
                        button         :    "sendbegintimebt",   // trigger for the calendar (button ID)
                        //showsTime      :    true,            // will display a time selector;不显示时间注释掉这行
                        singleClick    :    true           // double-click mode true为单击按钮 false为双击  
                       // timeFormat     :    "24"          //时间格式
                    });
                                </script> 
                              </td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">发送结束时间:</td>
                              <td width="70%">
                                <input type="text" name="sendendtime" size="40" readonly>
                                  <button id="sendendtimebt" type="button" class="button"> ...</button>
                                <script type="text/javascript">
                //时间控件
                    Calendar.setup({
                        inputField     :    "sendendtime",      // 字段名称 创建时间的结束时间
                        ifFormat       :    "%Y-%m-%d %H:%M:%S",       // format of the input field；不显示时间注释掉2007-05-01 13:45:50 用格式 %Y-%m-%d %H:%M:%S 
                        button         :    "sendendtimebt",   // trigger for the calendar (button ID)
                        //showsTime      :    true,            // will display a time selector;不显示时间注释掉这行
                        singleClick    :    true           // double-click mode true为单击按钮 false为双击  
                       // timeFormat     :    "24"          //时间格式
                    });
                                </script> 
                              </td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">发送人：</td>
                              <td width="70%">
                                <input type="text" name="acceptUsername" size="30" readonly>
                                  <input type="button"  onclick="selectmutiuser('senduserid','acceptUsername')" name="chooice" value="选择人员" >
                              </td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">消息类型：</td>
                              <td width="70%">
                                <select name="bigtype" >
                                  <option value="">请选择
                                  <%
                                  //onclick="changeType()"
                                  for(int i = 1;i <= com.ecomm.util.CommonMethod.bigtype.size();i++){
                                  %>
                                  <option value="<%=i%>"><%=com.ecomm.util.CommonMethod.bigtype.get(i+"")%>
                                  <%}%>
                                </select>
                              </td>
                            </tr>
                            
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">状态：</td>
                              <td width="70%">
                                <select name="state">
                                  <option value="">请选择
                                  <option value="0">未读
                                  <option value="1">已读
                                </select>
                              </td>
                            </tr>
                          </table>
                          <br>
                          <input name="Input" type="button" onclick="submitsea()" class="button" value="查 询">
                          <br>
                          <br>
                        </td>
                      </tr>
                    </form>
                  </table>
                  <table border="0" cellpadding="0" cellspacing="0" class="labeltable_bottom">
                    <tr>
                      <td class="labeltd_bottom">&nbsp;</td>
                    </tr>
                  </table>
                  <br>
                </td>
              </tr>
            </table>
        </div></TD>
      </TR>
    </TABLE>
    
  </body>
</html>





